package win.ganbo.easyframwork.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 资源权限
 *
 * @author ganbo
 * @date 2017年5月3日 上午10:07:36
 */

@Entity
@Table(name="sys_permission")
public class Permission extends BaseEntity{
	private static final long serialVersionUID = 1L;

	public static Integer type_resource = 1; //资源类型为系统资源
	public static Integer type_menu = 2;	 //资源类型为系统菜单
	
	private String  name;			//名字:比如用户管理,用户删除,用户修改
	private String  url;			//权限url
	@Column(name = "perm_code")
	private String 	permCode;		//权限代码
	private String  type;			//资源类型
	@Column(name = "parent_id")
	private String  parentId;		//父节点Id
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getPermCode() {
		return permCode;
	}
	public void setPermCode(String permCode) {
		this.permCode = permCode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
